package com.msun.monitor.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 服务器告警
 */
@TableName("alert_ecs")
@Data
public class AlertGroupEcs implements IParse<AlertGroupEcs> {

    /**
     * 服务器IP
     */
    private String instance;

    /**
     * 服务器别名
     */
    private String alias;

    @Override
    public AlertGroupEcs parse(JSONObject object) {
        this.setInstance(object.getString("instance"));
        this.setAlias(object.getString("alias"));
        return this;
    }
}
